* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

ul li {
    list-style: none;
    float: left;
}

.general-container {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}

#app {
    background: #edf1f7;
}

/* 顶部容器 */
.top-container {
    width: 100%;
    // height: 400px;
    // background-color: rgb(211, 211, 184);
    background-image: url("../image/index-top-bg.564836d0.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding-bottom: 50px;

}

/* 顶部的主体 */
.top-main {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;

    img {
        margin: 50px;
    }
}

/* 顶部的导航栏 */
.top-nav-container {
    // background-color: antiquewhite;
    display: flex;
    align-items: center;
    position: relative;

    .spacer {
        width: 400px;
        height: 50px;
    }


}

/* 导航栏 */
.top-nav {

    // height: 80px;
    li {
        padding: 20px 20px;

        a {
            color: white;
            font: bold 16px "微软雅黑";

        }
    }

    >.course-list {
        display: none;
        z-index: 100;
        width: 150px;
        background-color: white;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .23);
        position: absolute;
        left: 110px;
        top: 60px;

        >.course-item {
            &:hover {
                background-color: #90dbc3bd;
            }

            >a {
                color: rgba(0, 0, 0, .65);
                font: 14px "微软雅黑";
                padding-left: 10px;

                &:visited {
                    color: rgba(0, 0, 0, .65);
                }
            }
        }
    }
}

/*顶部被滚动隐藏后显示的导航栏  */
.nav-scroll {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    background-color: white;
}

.course-list-scroll {
    display: none;
    z-index: 100;
    width: 150px;

    background-color: white;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .23);
    position: absolute;
    left: 400px;
    top: 60px;
    transition: all .3s ease-in-out;

    >.course-item {
        &:hover {
            background-color: #90dbc3bd;
        }

        >a {
            color: rgba(0, 0, 0, .65);
            font: 14px "微软雅黑";
            padding-left: 10px;

            &:visited {
                color: rgba(0, 0, 0, .65);
            }
        }
    }
}

.nav-container {
    display: flex;

    width: 1160px;
    height: 80px;
    margin: 0 auto;

    justify-content: space-between;
    align-items: center;

    >.nav-left {
        display: flex;

        >img {
            width: 132px;
            height: 40px;
        }

        >.nav-box {
            display: flex;
            align-items: center;
            margin: 0 10px;

            >a {
                padding: 10px 20px;
                color: black;
                font: bold 16px "微软雅黑";
            }
        }
    }

    >.nav-right {
        display: flex;
        align-items: center;

        .search-box-button {
            background: rgb(0, 178, 120);
            border-radius: 0 20px 20px 0;
        }

        >.chart {
            width: 40px;
            height: 40px;
            background-color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .23);
        }

        >.login-box {
            padding: 5px 10px;
            border-radius: 22px;
            background-color: white;
            box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .23);

            color: #35c7de;
            color: rgb(51, 51, 51);
            font: 15px Microsoft YaHei;

        }
    }
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    justify-content: center;

    input {
        /* 边框隐藏 */
        outline: none;
        width: 200px;
        height: 40px;
        padding-left: 20px;
        border-radius: 20px 0 0 20px;
        border: 1px solid #d9d9d9;
        box-sizing: border-box;
    }

    .search-box-button {

        img {
            height: 40px;
            display: inline-block;
            padding: 12px 20px;
            border-radius: 0 20px 20px 0;
            border: 1px solid #d9d9d9;
            box-sizing: border-box;
            // background-color: aqua;
        }
    }

}

/* 登录 */
.login-container {
    display: flex;
    align-items: center;
    position: relative;

    .chart-box {
        width: 40px;
        height: 40px;
        background-color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px;
    }

    .login-box {
        padding: 5px 10px;
        border-radius: 22px;
        background-color: white;
        font-size: 15px;


        color: #35c7de;

        font: 15px Microsoft YaHei;


    }

    .open-mind {
        background: url("../image/open-mind.png");
        font-size: 10px;
        position: absolute;
        top: -20px;
        right: -40px;
        height: 41px;
        width: 155px;
        text-align: center;
        line-height: 30px;

    }
}

/* 主体 */
.main-container {

    padding-bottom: 20px;
}

/* 轮播图 */
.swiper-container {
    width: 1160px;
    height: 430px;
    margin: 0 auto;
    border-radius: 10px;
    margin-top: -50px;
    padding: 15px;
    background-color: white;

}

/* 轮播图图片 */
.swiper {
    width: 1130px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 1130/400; // 统一宽高比(如16:9)

    img {
        width: 100%;
        height: 100%;
        object-fit: cover; // 关键属性，裁剪保持比例
        border-radius: 10px;
    }
}

.vip-box {

    background: url("../image/vip-bg.png");
    width: 1160px;
    height: 50px;
    margin: 0 auto;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;

    >span {
        font-family: PingFangSC-Medium, PingFang SC;
        font-size: 16px;
        margin-right: 20px;
    }

    >div {
        width: 72px;
        height: 26px;
        line-height: 26px;
        padding: 1px 6px;
        background-color: #6e421a;
        color: #fff;
        border-radius: 18px;
    }
}

.course-live-online-container {
    width: 1160px;
    // height: 700px;

    margin: 0 auto;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;

    .online-left {
        width: 59%;
        border-radius: 20px;
        background: #fff;
        padding: 30px 20px;

        .online-title-line {
            display: flex;
            justify-content: space-between;
            height: 40px;
            // background-color: #dec6af;

            .title-box {
                display: flex;
                justify-content: space-between;

                img {
                    height: 35px;
                    margin-right: 10px;
                }

                div:nth-child(2) {

                    font-family: PingFangSC-Semibold, PingFang SC;
                    font-weight: 600;
                    font-size: 26px;
                    color: #333;
                    margin-right: 10px;
                }

                div:nth-child(3) {
                    margin-top: auto;
                    margin-bottom: 5px;
                    font-size: 14px;
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #9f9f9f;

                }
            }

            .change-box {
                display: flex;
                justify-content: center;
                align-items: center;

                img {
                    width: 20px;
                    margin-right: 10px;
                }
            }
        }

        .online-left-main {
            .live-content-box {
                margin-top: 10px;
                padding: 10px 0;
                padding-top: 0;
                box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .15);
                text-shadow: 0 4px 10px rgba(0, 0, 0, .15);
                // background-color: #9f9f9f;
                border-radius: 10px;


                >.img-container {
                    border-radius: 10px 10px 0 0;
                    overflow: hidden;

                    >img {
                        width: 100%;
                        height: 180px;
                        border-radius: 10px 10px 0 0;
                        transition: transform 0.3s ease; // 添加过渡动画

                        &:hover {
                            transform: scale(1.1); // 放大5%（可按需调整比例）

                        }
                    }
                }


                .live-title {
                    padding: 15px 0 10px 0;
                    margin-left: 20px;
                    font-size: 14px;
                    font-weight: 600;
                    color: #333;
                }

                .live-status {
                    color: #bac2c2;
                    padding-bottom: 15px;
                    margin-left: 20px;
                    text-shadow: 0 4px 10px rgba(0, 0, 0, .15);
                    font-size: 14px;
                    font-family: PingFangSC-Medium, PingFang SC;
                    display: flex;

                    align-items: center;

                    img {
                        width: 20px;
                    }
                }
            }
        }
    }

    .online-right {
        width: 39%;
        padding: 10px 20px;
        border-radius: 20px;
        background: #fff;

        >.online-right-title {
            margin-top: 20px;
            // background-color: #9f9f9f;

            display: flex;
            justify-content: space-between;
            align-items: center;

            >div:nth-child(2) {
                font-family: PingFangSC-Semibold, PingFang SC;
                font-weight: 600;
                font-size: 26px;
                color: #333;
            }

            >div:nth-child(3) {
                margin-bottom: 5px;
                font-size: 14px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #9f9f9f;
                // background-color: #1ab792;
            }
        }

        >.online-right-main {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding-bottom: 40px;
            margin-top: 40px;
            box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .1);
            border-radius: 20px;

            >.course-box {
                padding: 20px;
                align-items: center;

            }

            >img {
                width: 140px;
                height: 60px;
                margin: 0 auto;
                margin-top: -40px;
            }

            .course {
                display: flex;
                position: relative;
                margin: 10px;
                margin-bottom: 30px;

                >.img-box {
                    width: 170px;
                    height: 100px;
                    border-radius: 10px;
                    margin-right: 12px;
                    overflow: hidden;
                    transition: transform 0.5s ease-out; // 更自然的缓动效果
                    display: block; // 避免行内元素的白边问题

                    img {
                        width: 100%;
                        height: 100px;
                        border-radius: 10px;
                        transition: transform 0.3s ease; // 添加过渡动画

                        &:hover {
                            transform: scale(1.1); // 放大5%（可按需调整比例）

                        }
                    }
                }

                .course-rank {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: absolute;
                    left: 0;
                    top: 0;
                    z-index: 10;
                    background-color: rgb(252, 139, 51);
                    width: 43px;
                    height: 20px;
                    color: #fff;
                    font-size: 12px;
                    border-radius: 10px 0 20px 0;
                }

                .course-info {

                    height: 100px;
                }

                .course-title {
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-size: 14px;
                    font-weight: 500;
                    height: 39px;
                    margin-bottom: 5px;
                    color: #4e5054;
                }

                .course-price {
                    color: #f32425;
                    font-size: 20px;
                    font-weight: 600;
                    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;

                    line-height: 1.5;
                }

                .course-study-num {
                    font-weight: 500;
                    color: #b7bbc4;
                    font-size: 14px;
                }
            }

            .change-btn {

                margin-top: 20px;

                width: 108px;
                height: 29px;
                background: linear-gradient(90deg, #fd952d, #f1534b);
                border-radius: 15px;
                color: #fff;
                font-weight: 500;
                border: none;
                cursor: pointer;
            }

        }
    }
}

.class-list-container {
    width: 1160px;
    // height: 400px;
    background-color: white;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 20px;
    padding: 10px;


    .class-title-line {
        height: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #e8e8e8;
        padding: 0 12px 10px 0;
        margin-top: 20px;

        .class-title {

            >img:nth-child(1) {
                width: 40px;
                height: 40px;
                margin-right: 15px;
            }

            >span {
                font-weight: 600;
                font-size: 24px;
                font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
                font-variant: tabular-nums;
                line-height: 1.5;
            }

            >img:nth-child(3) {

                cursor: pointer;
                margin-left: 8px;
                width: 93px;
                height: 33.5px;
            }
        }

        .more-btn {
            display: flex;
            align-items: center;

            >a {
                color: #999;
                font-size: 16px;
                line-height: 34px;
            }

            >img {
                width: 16px;
            }
        }
    }

    .class-list-container {
        display: flex;
        width: 1140px;
        justify-content: space-between;
    }

    a {
        .class-list-item {
            margin-bottom: 10px;
            box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .15);
            border-radius: 10px;
            color: #000;
            padding-bottom: 10px;

            >.img-container {
                margin-bottom: 10px;
                overflow: hidden;
                border-radius: 10px 10px 0 0;

                >img {
                    width: 215px;
                    height: 118px;
                    transition: all 0.3s;

                    &:hover {
                        transform: scale(1.1);
                    }
                }
            }

            >.class-title {
                padding-left: 10px;
                margin-bottom: 10px;
                font-size: 14px;
                width: 215px;
                /* 文字在一行显示，多余隐藏，用省略号表示 */
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;

                &:hover {
                    color: green;
                }
            }

            >.class-info {
                color: #b7bbc4;
                height: 22px;
                box-sizing: border-box;
                line-height: 1.5;
                padding-left: 10px;
                margin-bottom: 10px;
            }

            >.class-price {
                padding: 0 10px;
                margin-bottom: 10px;
                display: flex;
                justify-content: space-between;
                align-items: center;

                .free {
                    color: #00cf8c;
                    font-weight: 600;
                    font-size: 16px;
                }

                .price {
                    color: #ff4500;
                    font-weight: 500;
                    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
                    font-variant: tabular-nums;
                    line-height: 1.5;
                }

                .old-price {
                    color: #999;
                    text-decoration: line-through;
                    font-size: 12px;
                }

                .discount-info {
                    color: #fa8c16;
                    background: #fff7e6;
                    border-color: #ffd591;
                    border: 1px solid #d9d9d9;
                    padding: 0 7px;
                    font-size: 12px;
                    box-sizing: border-box;
                }
            }

        }
    }

    .class-list-item {
        margin-bottom: 10px;
        box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .15);
        border-radius: 10px;
        color: #000;
        padding-bottom: 10px;

        >.img-container {
            margin-bottom: 10px;
            overflow: hidden;
            border-radius: 10px 10px 0 0;

            >img {
                width: 215px;
                height: 118px;
                transition: all 0.3s;

                &:hover {
                    transform: scale(1.1);
                }
            }
        }

        >.class-title {
            padding-left: 10px;
            margin-bottom: 10px;
            font-size: 14px;
            width: 215px;
            /* 文字在一行显示，多余隐藏，用省略号表示 */
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;

            &:hover {
                color: green;
            }
        }

        >.class-info {
            color: #b7bbc4;
            height: 22px;
            box-sizing: border-box;
            line-height: 1.5;
            padding-left: 10px;
            margin-bottom: 10px;
        }

        >.class-price {
            padding: 0 10px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .free {
                color: #00cf8c;
                font-weight: 600;
                font-size: 16px;
            }

            .price {
                color: #ff4500;
                font-weight: 500;
                font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
                font-variant: tabular-nums;
                line-height: 1.5;
            }

            .old-price {
                color: #999;
                text-decoration: line-through;
                font-size: 12px;
            }

            .discount-info {
                color: #fa8c16;
                background: #fff7e6;
                border-color: #ffd591;
                border: 1px solid #d9d9d9;
                padding: 0 7px;
                font-size: 12px;
                box-sizing: border-box;
            }
        }

    }
}

/* 底部 */
.footer-container {
    background: #0f141a;
    // height: 300px;

    .footer {
        width: 1160px;
        margin: 0 auto;

        .first-line {
            padding-top: 20px;
            width: 51%;
            color: #fff;
            font-size: 22px;
            margin: 16px auto;
            line-height: 30px;
        }

        .second-line {
            width: 70%;
            margin: 0 auto;

            >a {
                font-size: 14px;
                color: #999;
                margin-right: 30px;
                padding: 10px;

                &:hover {
                    color: green !important;
                }

                &:visited {
                    color: #999;
                }
            }

        }

        .spacer-line {
            margin: 25px;
            width: 1000px;
            height: 1px;
            border: 1px solid rgb(84, 84, 84);

        }

        .third-line {
            height: 50px;
            line-height: 30px;
            text-align: center;
            color: #777878;
            font-size: 14px;
        }
    }
}

.mask {

    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;

    .login-form {

        width: 400px;
        height: 300px;
        background-color: white;
        box-shadow: #777878;
    }
}

.mybtn {
    width: 200px;
    background-color: #00cf8c;
    border: none;

    &:hover {
        background-color: #0da03e;
        border: none;
    }
}

.my-modal-footer {
    display: flex;
    justify-content: space-evenly;
}

#myModal {
    .login-title {
        display: flex;
        justify-content: space-around;

        >div {
            width: 30%;
            text-align: center;
            padding: 10px;

        }
    }
}

.hidden {
    display: none;
}

.my-border-bottom {
    border-bottom: 2px solid #00cf8c;
}

.side-container {
    width: 50px;
    height: 100%;
    // background-color: #9f9f9f;
    position: fixed;
    top: 40%;
    right: 1%;
    z-index: 99;

    >.staff {
        width: 50px;
        height: 50px;
        background-color: white;
        margin-bottom: 20px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;

        >img {
            width: 30px;
        }

        >.info {
            display: none;
            position: absolute;
            top: 0;
            left: -170px;
            width: 170px;
            height: 60px;
            border-radius: 10px;
            background-image: url("../image/提示框.svg");
            background-size: 100% 100%;
            padding: 0 10px;

            >div:nth-child(1) {
                text-align: center;
            }

            >div:nth-child(2) {
                padding-right: 20px;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
        }
    }

}
.error,
.pwd-tip,
.check-code-tip,
.phone-tip {
    height: 25px;
    margin-top: 10px;
    padding-left: 10px;
    color:red;
}
